package com.zlx.taskcenter.annotations;


import com.zlx.redismessage.constant.RedisQueue;

import java.lang.annotation.*;

/**
 * @PackageName: com.jingtoo.taskcenter.annotations
 * @ClassName: Consumer
 * @Author: gaoYuan
 * @Date: 2022/5/9 18:27
 * @Description: Consumer
 */
@Target({ ElementType.TYPE })
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Consumer {

    /**
     * numberOfConsumer
     * @return
     */
    int number() default 1;

    /**
     * consumptionQueueName
     * @return
     */
    RedisQueue queue();
}
